﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input.Touch;
using Imaginecup.util.input;

namespace Imaginecup.util.touchMan
{
    public class TouchMan
    {
        private Dictionary<int, ITouchProcess> m_TouchDictionary;

        public TouchMan()
        {
            m_TouchDictionary = new Dictionary<int, ITouchProcess>();
        }

        public void AddTouchProcess( TouchLocation touch , ITouchProcess touchProcess)
        {
            m_TouchDictionary.Add(touch.Id, touchProcess);
        }

        public bool IsContainTouch( int id )
        {
            if (m_TouchDictionary.ContainsKey(id))
                return true;

            return false;
        }

        public ITouchProcess GetTouchProcess( int id )
        {
            return m_TouchDictionary[id];
        }
    }
}
